import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty } from "class-validator";
import type { Express } from "express";

// 单文件
export class CreateFileDto {
  @ApiProperty({ type: "string", format: "binary" })
  @IsNotEmpty()
  file: Express.Multer.File;
}
// 多文件
export class CreateFilesDto {
  @ApiProperty({ type: "string", format: "binary", isArray: true })
  @IsNotEmpty()
  files: Express.Multer.File;
}

